package edu.cmu.cs.stage3.alice.authoringtool.editors.responseeditor;

import edu.cmu.cs.stage3.alice.authoringtool.editors.compositeeditor.ComponentElementPanel;

public class ComponentResponsePanel extends ComponentElementPanel{

	protected edu.cmu.cs.stage3.alice.core.Response m_response;

	public ComponentResponsePanel(){
		this.setBorder(javax.swing.BorderFactory.createEmptyBorder(0,0,0,0));
		this.remove(grip);
	}

	//Rem @Override
	public void set(edu.cmu.cs.stage3.alice.core.Element element) {
		if (element instanceof edu.cmu.cs.stage3.alice.core.Response){
			m_response = (edu.cmu.cs.stage3.alice.core.Response)element;
			super.set(element);
		}
	}

	public edu.cmu.cs.stage3.alice.core.Response getResponse(){
		return m_response;
	}

}